Components › Forms & input › Date & time › Date field

Date field

canon

Input that parses typed dates and opens the calendar panel.

Used in 30 files · 21 areas · 56× — components/accounting, components/callwrapup, components/clen-tymu, components/dialog, components/kpi, components/mail …

Default

components--date-field--defaultOpen standalone ↗Code

Variants

same year — 26. 8.
other year — 14. 11. 27
other century — 11. 2. 1988
precision=full — year always shown (data ‚k datu‘) — 31. 5. 2026
futureBias — typed 1. 9. lands on the next occurrence
components--date-field--variantsOpen standalone ↗Code

States

empty (placeholder)
filled
error
disabled
→ čtvrtek 30. 7.
typing echo (static .dp-echo)
Nerozumím datu
typing echo — invalid (static .dp-echo.bad)
Focus: `.dp-field:focus-within` draws the accent border + 3px accent ring; the calendar opens from the icon or ↓, never from focus alone.
components--date-field--statesOpen standalone ↗Code

Composition

form field — label from <Field>, single date
Zadejte datum
form field with error — message from <Field>, ring from the field
dialog footer follows the field
components--date-field--compositionOpen standalone ↗Code